package com.gongJiao.mapper;

import com.gongJiao.Vo.PageCondition;
import com.gongJiao.Vo.RouteVo;
import com.gongJiao.entity.Route;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gongJiao.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-12-25
 */
@Mapper
public interface RouteMapper extends BaseMapper<Route> {

    /**
     * 根据路线名称分页查询路线信息集合
     * @param pageCondition
     * @return
     */
    List<RouteVo> getRouteListByName(PageCondition pageCondition);
    /**
     * 根据路线名称分页查询路线数量
     * @param pageCondition
     * @return
     */
    Integer getCountByName(PageCondition pageCondition);
    /**
     * 判断路线名是否可用
     * @param name
     * @return
     */
    Route getvehicleByName(String name);
    /**
     * 跟据就站点id查找使用站点的路线名称集合字符串
     * @param ids
     * @return
     */
    String getRoutBySiteId(Long ids);
}
